<template>
  <div class="shouye">
    <transition name="fade" mode="out-in">
      <keep-alive>
        <router-view></router-view>
      </keep-alive>
    </transition>
    <van-tabbar v-model="active" active-color="deepskyblue">
      <van-tabbar-item icon="home-o" to="/myshouye/shouye"
        >首页</van-tabbar-item
      >
      <van-tabbar-item icon="search" to="/myshouye/baobaotuan"
        >爆爆团</van-tabbar-item
      >
      <van-tabbar-item icon="shopping-cart-o" to="/myshouye/dingdan"
        >订单</van-tabbar-item
      >
      <van-tabbar-item icon="friends-o" to="/myshouye/wode"
        >我的</van-tabbar-item
      >
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>

<style lang='scss' scoped>
.fade-enter {
  opacity: 0;
}
.fade-enter-active {
  transition: all 0.4s;
}
.fade-enter-to {
  opacity: 1;
}
.fade-leave {
  opacity: 1;
}
.fade-leave-active {
  transition: all 0.4s;
}
.fade-leave-to {
  opacity: 0;
}
.shouye {
  width: 100%;
  height: 100%;
}
</style>